<jsp:useBean id="statistics" class="dasregistry.statisticsBean"/>

<%@ include file="sangerheader.jsp" %>

<div id="primarycontainer">
<div id="primarycontent">

<h2>Statistics for DAS registration server</h2>






<h2> Registered servers </h2>
<% 
   String[] institutions = statistics.getInstitutions();
   String[] countries    = statistics.getCountries();
%>


	# servers:
	<%=statistics.getTotalNumberServers()%><br/>

# servers with types:<%=statistics.getSourcesWithTypes()%><br/>

# of types: <%=statistics.getTypesCount() %><br/>
# of institutions: <%= institutions.length %><br/>
# of countries:<%= countries.length %><br/>


<h2> Institutions </h2>

 <% 
  for (int i = 0 ; i< institutions.length ; i++ ) {
  String institution = institutions[i];
  %>
  
  <%=institution%> 
  <br/>
  <%
  }
  %>


</div>
</div>


<div id="secondaryconent">
<div class="content">
<h2> Countries </h2>

 <% 
  for (int i = 0 ; i< countries.length ; i++ ) {
  String country = countries[i];
  %>

  <%=country%> <br/>
  
  <%
  }
  %>











<!-- statistics on servers -->
<!--<%//@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf' %>-->
     
<!--<//jsp:useBean id="numberServerStat" class="org.biojava.services.das.cewolf.NumberDasSourceStat" scope="page"/>-->
<!--
<cewolf:chart 
    id="timeChart" 
    title="valid DAS soures over time" 
    type="timeseries" 
    xaxislabel="time" 
    yaxislabel="number of sources"
    >
    <cewolf:data>
        <cewolf:producer id="numberServerStat" usecache="true"/>
    </cewolf:data>
</cewolf:chart>

<cewolf:img chartid="timeChart" renderer="cewolf" width="400" height="300"/>-->
</div>
</div>



<%@ include file="sangerfooter.jsp" %>



